cleanup FormatLoad class header file. (#684)
authortsteven4 <13596209+tsteven4@users.noreply.github.com>
Sat, 6 Feb 2021 21:29:11 +0000 (14:29 -0700)
committerGitHub <noreply@github.com>
Sat, 6 Feb 2021 21:29:11 +0000 (14:29 -0700)
clang-tidy modernize-use-default-member-init

This allows the use of the implicitly-defined default ctor.
Use implicitly-defined dtor as well.

gui/formatload.h

index 6df76043d0c0a05c4fa22d7d593d8a9f3425daba..5f24e62c621fde8bdc8be188b07307f1f48736be 100644 (file)
 class FormatLoad
 {
 public:
-  FormatLoad() : currentLine_(0) {}
-  ~FormatLoad() {}
+
+  /* Member Functions */
 
   bool getFormats(QList<Format>& formatList);
+
 private:
-  QStringList lines_;
-  int currentLine_;
+
+  /* Member Functions */
+
   bool skipToValidLine();
   bool processFormat(Format& format);
+
+  /* Data Members */
+
+  QStringList lines_;
+  int currentLine_{0};
 };
 
 #endif